﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Header.ascx.vb" Inherits="FrontEnd_Control_Header" %>
<%@ Import Namespace="Cls_Common" %>



<script type="text/javascript">
    $(function () {
        $(".collapsed").click(function () {
            $("#nav-toggle").toggle(1000);
        });
        //enter
        $("#<%=txtSeachTop.ClientID() %>").keypress(function () {
            if (e.keyCode == 13) {
                $("#<%=btnSeachTop.ClientID()%>").click();
                return false;
            }
        });
        var url = new String(window.location);
        $(".MenuActive").each(function () {
            if (url == $(this).attr("href")) {
                $(this).parent().addClass("active");
            }
            else {
                $(this).parent().removeClass("active");
            };
        });
    });
</script>

<div class="row_toppages">
        	<div class="width_pages">
        		<div class="left_top">  
                        <!-- dateTime -->
                                    <div class="text_date">                            	

                                    </div>
                        <!-- end DateTime -->  
                        <!-- hours -->
                                     <div class="text_hours" id="clock"></div>
                          <!-- hours -->
                </div>
                <div class="right_toppages">
                	<div class="bg_language_l">&nbsp;</div>
                    <div class="bg_language_m">
                    	<div class="linktop">
                         <%  If Session("UserName") Is Nothing Then%>
                       
                                <a href='<%=MainDomain & "dang-ky.html"%>'>Đăng ký</a>
                           
                            &nbsp;| &nbsp;
                            
                                <a href='<%=MainDomain & "dang-nhap.html"%>'>Đăng nhập</a>
                            
                        
                        <% Else%> 
                        
                                <b class="MyAdmin">
                                    Chào bạn:<a style="color: #5bc0de" href='<%=MainDomain & "myAdmin.html"%>'>
                                         <%= Session("UserName")%>
                                    </a>
                                </b>
                                &nbsp; | &nbsp;
                                     <a  href='<%=MainDomain & "myAdmin.html"%>'> quản lý hồ sơ</a>
                                 &nbsp; | &nbsp;
                        
                                <asp:HyperLink ID="lbtnExit" runat="server" Text="Thoát" NavigateUrl="~/Logout.aspx"></asp:HyperLink>
                                 
                     
                        <% End If%>                       
                        </div>
                    </div>
                    <div class="bg_language_r">&nbsp;</div>
                		
                </div>
            </div>
        </div>

<div id="header">
    <div class="container">
        <div class="row">
            <div class="col-xs-3">
                <div class="logo pull-left">
                    <a href="#">
                        <img src='<%=MainDomain & "FrontEnd/images/logo.png" %>' class="img-responsive" alt="" />
                    </a>
                </div>
            </div>
            <div class="col-xs-9">
                <div class="banner-header pull-left">
                    <img src='<%=MainDomain & "FrontEnd/images/banner-top.png" %>' class="img-responsive"
                        alt="" />
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12" style="padding-right:0px !important">
                <div class="search-top pull-right">
                    <asp:TextBox ID="txtSeachTop" runat="server" CssClass="TextBox" placeholder="từ khóa" />
                    <asp:Button ID="btnSeachTop" Text="" runat="server" />
                </div>
            </div>
        </div>
        <div class="row" style="height:47px">
            <div class="nav-inner">
                <nav class="navbar navbar-inverse" role="navigation">
                    <div class="container">
                        <!-- Brand and toggle get grouped for better mobile display -->
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse-in" data-target="#nav-toggle">
                                <span class="sr-only">Menu</span> <span class="icon-bar"></span><span class="icon-bar">
                                </span><span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href='<%=MainDomain & "index.aspx"%> '>
                                <img src='<%=MainDomain & "FrontEnd/images/icon-link-home.png" %>' alt="" />
                            </a>
                        </div>
                        <!-- Collect the nav links, forms, and other content for toggling -->
                        <div class="collapse navbar-collapse" id="nav-toggle">
                            <ul class="nav navbar-nav">
                                <asp:Repeater ID="rptMenu" runat="server">
                                    <ItemTemplate>
                                        <li>
                                            <asp:HyperLink ID="hplTitle" runat="server" CssClass="MenuActive">Title</asp:HyperLink></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                        <!-- /.navbar-collapse -->
                    </div>
                    <!-- /.container-fluid -->
                </nav>
            </div>
        </div>
    </div>
    <!--End .menu-header-->
</div>
